package com.zzj.rabbitmq;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.zzj.JeeBootApplication;
import com.zzj.rabbitmq.MsgProducer;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = JeeBootApplication.class)
public class RabbitMqtest {
	   @Autowired MsgProducer msgProducer;
	   @Test
	   public void sendMsg(){
		   msgProducer.sendMsg("测试发送消息");
	   }
}
